package com.fxp.project.jiuselu.web.models.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fxp.project.jiuselu.web.models.order.entity.JslCart;
import com.fxp.project.jiuselu.web.models.order.entity.JslLogisticArea;
import com.fxp.project.jiuselu.web.models.order.vo.JslLogisticAreaVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 物流地区配置表 服务类
 * </p>
 *
 * @author Jason.Wang
 * @since 2021-11-22
 */
public interface IJslLogisticAreaService extends IService<JslLogisticArea> {

    /**
     * selectJslLogisticAreaVoByLogisticIdWithAreaId: 根据当前的地区Id和物流配置Id查询价格信息<br/>
     *
     * @param logisticId
     * @param areaId
     * @return
     * @author Jason.Wang
     * @date 2022/1/27 14:54
     */
    JslLogisticAreaVo selectJslLogisticAreaVoByLogisticIdWithAreaId(String goodsId,Long logisticId, Long areaId, BigDecimal attrWeight,Integer type);

    BigDecimal getMoney(JslLogisticAreaVo vo, List<String> result ,List<JslCart> jslCarts);
}
